]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[appSwitcher] Check the modifier state rather than assuming Meta
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 11 Sep 2010 20:41:59 +0000 (22:41 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sat, 11 Sep 2010 20:41:59 +0000 (22:41 +0200)
It isn't guaranteed that Alt+Shift equals to Meta, so we have to check
the modifier instead.

https://bugzilla.gnome.org/show_bug.cgi?id=629368

js/ui/altTab.js

index 64173951892a2c27e6eadb2996b5e2a3b6424fd5..6a4ba0c510e0b2db9b4d76394cdc41d4a1102c14 100644 (file)
@@ -264,9 +264,10 @@ AltTabPopup.prototype = {
     },
 
     _keyReleaseEvent : function(actor, event) {
-        let keysym = event.get_key_symbol();
+        let [x, y, mods] = global.get_pointer();
+        let state = mods & Clutter.ModifierType.MOD1_MASK;
 
-        if (keysym == Clutter.Alt_L || keysym == Clutter.Alt_R || keysym == Clutter.Meta_L || keysym == Clutter.Meta_R)
+        if (state == 0)
             this._finish();
 
         return true;